var assert = require('assert');
var should = require('should');
var util = require('util');
var _ = require('lodash');
var huntModel = require('../../app/models/huntModel.js');
var config = require('../config');

suite('测试huntModel', function () {
    var hunt_Model;
    setup(function (done) {
        huntModel.getByRoleId(config.role_id, function (err, model) {
            assert.equal(err == null, true);
            hunt_Model = model;
            hunt_Model.toJSON();
            done();
        });
    });

    suite('getWorkerOpen', function () {
        test('主城小玩法', function () {
            // console.log('设置hunt:', hunt_Model.getHuntList());

            // for (var i = 0; i < 6; i++) {
            //     hunt_Model.setHunt(1);
            // }
            // hunt_Model.removeHunt(1);
            // console.log('设置hunt:', hunt_Model.getHuntList());
            hunt_Model.save();
        });
    });
});
